function getTitleHeight() {
  wx.getSystemInfo({
    success: ({ statusBarHeight, system }) => {
      let titleBarHeight = 44
      if (system.indexOf('Android') !== -1) {
        titleBarHeight = 54
      }
      return titleBarHeight + statusBarHeight;
    }
  })
}

module.exports = {
  getTitleHeight: getTitleHeight
}